import java.util.Scanner;
public class demo4_2{
    public static void main (String[] args){
    demo4_1 a =new demo4_1();
    Scanner str = new Scanner(System.in);
    System.out.println("请输入用户名");
    String name = str.nextLine();
    a.setName(name);
    int c=a.getName().length();
    
    for(int i =0;i<c;i++){
        System.out.println(name.charAt(i));
    }
    cout(name);
    
    
    
    
    }
    public static void cout(String str){
    int bigcout=0;
    int smallcout=0;
    int numbercout=0;
    for(int i=0;i<str.length();i++){
    char c=str.charAt(i);
    if(c>='A'&&c<='Z'){
        bigcout++;
    }else if(c>='a'&&c<='z'){
        smallcout++;
    }else{
        numbercout++;
    }
        }    
    System.out.println("大写数量_"+bigcout+"小写数量_"+smallcout+"数字数量_"+numbercout);
}
}